﻿using Microsoft.Extensions.Configuration;
using MiniFox.Configurations;

namespace MiniFox.Platform.Configurations
{
    /// <summary>
    /// 
    /// </summary>
    [Section(ELEMENT_NAME)]
    public class VerifyConfiguration
    {
        internal const string ELEMENT_NAME = "minifox:verify";

        /// <summary>
        /// 
        /// </summary>
        [ConfigurationKeyName("settings")]
        public VerifySettingCollection VerifySettings
        {
            get;
            set;
        } = new VerifySettingCollection();
        /// <summary>
        /// 发送手机验证码地址
        /// </summary>
        [ConfigurationKeyName("pincodeUrl")]
        public string PinCodeUrl
        {
            get;
            set;
        }
        /// <summary>
        /// 手机验证码验码地址
        /// </summary>
        [ConfigurationKeyName("matchPinCodeUrl")]
        public string MatchPinCodeUrl
        {
            get;
            set;
        }
        /// <summary>
        /// 验证码请求地址
        /// </summary>
        [ConfigurationKeyName("randcodeUrl")]
        public string RandCodeUrl
        {
            get;
            set;
        }
        /// <summary>
        /// 验码地址
        /// </summary>
        [ConfigurationKeyName("matchcodeUrl")]
        public string MatchCodeUrl
        {
            get;
            set;
        }
        /// <summary>
        /// 验票地址
        /// </summary>
        [ConfigurationKeyName("checkResultUrl")]
        public string CheckResultUrl
        {
            get;
            set;
        }
    }
}
